<?php
namespace model;

use think\Model;

class User extends Model{

    public function detail(){
        return $this->hasOne('UserDetail', 'uid');
    }
}